﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.ManagerService.Entities;
using Wq.ManagerService.Models;

namespace Wq.ManagerService
{
    class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<RoleEditor, RoleInfo>().ReverseMap();
            CreateMap<RoleEditor.RolePrivilege, RolePrivilegeInfo>().ReverseMap();
            CreateMap<ManagerEditor, ManagerInfo>().ReverseMap();
            CreateMap<OperationLog, OperationLogInfo>().ReverseMap();
            CreateMap<FileEditor, Entities.FileInfo>().ReverseMap();
            CreateMap<CategoryEditor, CategoryInfo>().ReverseMap();
            CreateMap<RegionInfo, RegionDetails>().ReverseMap();
         
        }
    }
}
